package cn.wolfcode.crm.domain;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
@Getter@Setter
public class Salary {
    private Long id;

    private String name;

    private String position;

    private BigDecimal basePay;

    private BigDecimal performancePay;

    private BigDecimal technologyPay;

    private BigDecimal phonePay;

    private BigDecimal awardPay;

    private BigDecimal overworkPay;

    private BigDecimal stayworkPay;

    private BigDecimal teachCost;

    private BigDecimal yearPay;

    private BigDecimal olderPay;

    private BigDecimal workdateCost;

    private BigDecimal complement;

    private BigDecimal salary;

    private BigDecimal trueSalary;

    private BigDecimal socialCost;

    private BigDecimal funds;

    private BigDecimal taxCost;

    private String remark;

    /*public BigDecimal getCost(){

        return this.workdateCost.add(teachCost).add(workdateCost);
    }

    public BigDecimal getSalary(){

        return this.basePay.add(performancePay).add(technologyPay)
                .add(phonePay).add(awardPay).add(overworkPay)
                .add(olderPay).add(complement);
    }

    public BigDecimal getTrueSalary(){

        return this.getSalary().subtract(this.getCost()).subtract(socialCost).subtract(taxCost).subtract(funds);
    }*/

}